package com.zyy.jomap.bo;

import com.zyy.jomap.annotation.JoSet;

import java.util.List;

/**
 * @author zhangyy
 */
public class DeviceBO extends DeviceParentBO{

    private Long id;

    @JoSet({"DeviceDO.deviceNameDo"})
    private String deviceName;

    private String deviceMapName;

    /** JoMap比JoTarget优先 **/
    @JoSet({"DeviceDO.address"})
    private String addr;

    /** 子设备 **/
    private ChildDeviceBO childDeviceBean;

    private List<ChildDeviceBO> childDeviceList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceMapName() {
        return deviceMapName;
    }

    public void setDeviceMapName(String deviceMapName) {
        this.deviceMapName = deviceMapName;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public ChildDeviceBO getChildDeviceBean() {
        return childDeviceBean;
    }

    public void setChildDeviceBean(ChildDeviceBO childDeviceBean) {
        this.childDeviceBean = childDeviceBean;
    }

    public List<ChildDeviceBO> getChildDeviceList() {
        return childDeviceList;
    }

    public void setChildDeviceList(List<ChildDeviceBO> childDeviceList) {
        this.childDeviceList = childDeviceList;
    }
}
